import API from "./config"
export default {
  queryAddress () {
    return API.post(`/address/find`, { page:1, pageSize: 30 })
  },

  queryDetfaultAddress () {
    return API.get(`/address/getDefaultAddress`)
  },

  createAddress (data) {
    return API.post(`/address/save`, data)
  },

  queryAddressDetail (addressId) {
    return API.get(`/address/getAddressDetails/${addressId}`)
  },
  
}